package com.iocaop.security.demo02;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.authentication.configuration.EnableGlobalAuthentication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@SpringBootApplication
// 开启注解方式对权限控制
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class Demo02Application {
    public static void main(String[] args) {
        SpringApplication.run(Demo02Application.class,args);
    }
}
